$(function () {
    loadUserInfo();
});


function loadUserInfo(){
    var url = "/home/api/loadUserInfo";
    $.post(url, null, function (result) {
        if(result.code !== 200) {
            var login_html = $("#login_html").val();
            if(!login_html){
                window.location.href = "/home/login";
            }
        }
    });
}